package com.tonghe.service.user;

import com.tonghe.pojo.Role;
import com.tonghe.pojo.User;

import java.util.List;

/**
 * @Date:2021/12/2- 12- 02- 21:00
 **/
public interface UserService {
    //用户登陆
    public User login(String userCode, String userPassword);
    //根据用户id更改密码
    public boolean updatePwd(int id,String  pwd);
    //查询记录数
    public  int getUserCount(String username, int userRole);
    //查询用户列表
    public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize);
    //添加用户
    public boolean add(User user);



}
